package PBMessage

import "github.com/golang/protobuf/proto"

//Decode 解码PBMessage
func Decode(pbMessageID int32, byteData []byte) proto.Message {
	pbMessage := GetPBMessageByID(pbMessageID)
	proto.Unmarshal(byteData, pbMessage)
	return pbMessage
}
